#ifndef _CALLBACK_H_
#define _CALLBACK_H_
#include <pthread.h>
struct pthread_data
{
    int sockfd;
};
extern volatile struct activate_car data_car;
extern volatile int data_car_update;
extern volatile struct trumpet data_trumpet;
extern volatile int data_trumpet_update;
extern pthread_mutex_t data_trumpet_mutex;
extern pthread_mutex_t data_car_mutex;
//小车线程函数
void *car_callback();
//蜂鸣器控制线程函数
void *trumpet_callback();
//数据线程接收函数
void *recv_callback(void *data);


#endif